package demo4j.model;

import apijson.MethodAccess;
import apijson.framework.BaseModel;
import apijson.orm.Visitor;
import lombok.*;

import java.util.List;

import static apijson.orm.AbstractVerifier.ADMIN;
import static apijson.orm.AbstractVerifier.UNKNOWN;

/**
 * 用户开放信息
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@MethodAccess(POST = {UNKNOWN, ADMIN}, DELETE = {ADMIN})
public class User extends BaseModel implements Visitor<Long> {
    private Integer sex; //性别
    private String head; //头像url
    private String name; //姓名
    private String tag; //标签
    private List<String> pictureList; //照片列表
    private List<Long> contactIdList; //朋友列表
}
